-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cadence Account Storage Map Migration #6761
base: master
Are you sure you want to change the base?
Conversation
…omain-payloads-and-domain-storage-maps
…ntV2Migration contract
@turbolent Thanks for working on this part of the integration! Do we want to create a feature branch and target this PR to the feature branch? |
@onflow/flow-cadence-execution is there a way to call |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6761 +/- ##
===========================================
+ Coverage 39.71% 43.14% +3.42%
===========================================
Files 1332 45 -1287
Lines 123050 3201 -119849
===========================================
- Hits 48875 1381 -47494
+ Misses 69986 1713 -68273
+ Partials 4189 107 -4082
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Start work on the migration logic for onflow/cadence#3584
AccountV2Migration
, which is deployed to the service account during bootstrapping. ItsAdmin
resource is able to trigger the migration for the next batch of accounts to be migrated, by calling the injectedscheduleAccountV2Migration
functionfun scheduleAccountV2Migration(addressStartIndex: UInt64, count: UInt64): Bool
to the new contractAccountV2Migration
in the service account. It generates the addresses in the given range, and schedules the migration to the new account storage format V2. It essentially just calls the internal Go functionruntime.Storage.ScheduleV2Migration()
provided by Cadence.